package com.suyuan.vo;

import com.suyuan.entity.CustomCartItem;
import com.suyuan.entity.CustomerCart;

import java.io.Serializable;
import java.util.List;

/**
 * 购物车vo类
 */
public class CustomerCartVO implements Serializable{

    private CustomerCart cart;

    private List<CustomCartItem> items;

    public CustomerCart getCart() {
        return cart;
    }

    public void setCart(CustomerCart cart) {
        this.cart = cart;
    }

    public List<CustomCartItem> getItems() {
        return items;
    }

    public void setItems(List<CustomCartItem> items) {
        this.items = items;
    }

    public CustomerCartVO(){}

    public CustomerCartVO(CustomerCart cart, List<CustomCartItem> items) {
        this.cart = cart;
        this.items = items;
    }

    @Override
    public String toString() {
        return "CustomerCartVO{" +
                "cart=" + cart +
                ", items=" + items +
                '}';
    }
}
